
<script src="<@baseUrl url='/static/js/util/util.js'/>"></script>
<script type="text/javascript">
    AppComm.include.load("<@baseUrl url='/static/comm/js/unit/commSelectSearch.js'/>", "js");
    AppComm.include.load("<@baseUrl url='/static/comm/js/manager/menuManagerForm.js'/>","js")
</script>

<div class="layui-tab-item layui-show">
    <br>
    <div class="layui-tab-item layui-show">
        <div class="menuManagerForm_box"></div>
    </div>
</div>

<script id="menuManagerForm_template" type="text/html">
    <form class="layui-form" action="">
        <div class="layui-tab-item layui-show" style="width:652px;margin: 0 auto;">
            <input type="hidden" id="id" value="{{menuDto&&menuDto.id}}" >
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">标识</label>
                <div class="layui-input-inline">
                    <input type="text" id="menuKey" name="menuKey" required lay-verify="required"  lay-verify="menuKey" placeholder="请输入标识" autocomplete="off" class="layui-input" value="{{menuDto&&menuDto.menuKey}}">
                </div>
                <label class="layui-form-label layui-required">名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="menuName" name="menuName" required  lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="{{menuDto&&menuDto.menuName}}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">级别</label>
                <div class="layui-input-inline" id="levelDiv">
                    <select name="level" id="level" lay-verify="required" lay-filter="level">
                        <option value=""></option>
                    </select>
                </div>
                <label class="layui-form-label">父级菜单</label>
                <div class="layui-input-inline" id="parentIdDiv">
                    <select name="parentId" id="parentId" lay-verify="required" lay-filter="parentId">
                        <option value=""></option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">何处打开</label>
                <div class="layui-input-inline" id="targetDiv">
                    <select name="target" id="target" lay-verify="required" lay-filter="target">
                        <option value=""></option>
                    </select>
                </div>
                <label class="layui-form-label layui-required">排序</label>
                <div class="layui-input-inline">
                    <input type="text" id="orderId" name="orderId" lay-verify="required" placeholder="请输入排序号" autocomplete="off" class="layui-input" value="{{menuDto&&menuDto.orderId}}">
                </div>
            </div>
            <div class="layui-form-item" id="href_div">
                <label class="layui-form-label">链接</label>
                <div class="layui-input-inline">
                    <input style="width:502px;" type="text" id="href" name="href" placeholder="请输入链接" autocomplete="off" class="layui-input" value="{{menuDto&&menuDto.href}}">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <label style="color: red">标识：manager_menuManager</label>
                    <br>
                    <br>
                    <label style="color: red">链接：manager/menuManager</label>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">说明</label>
                <div class="layui-input-block">
                    <textarea style="width:512px;" placeholder="请输入内容" id="comment" name="comment" class="layui-textarea">{{menuDto&&menuDto.comment}}</textarea>
                </div>
            </div>
            <br>
            <div class="layui-form-item">
                <div class="layui-inline" style="margin-left: 225px;width:142px;">
                    <@hasPermission key="menuManager:save" html='<button type="submit" class="layui-btn layui-btn-default layui-btn-sm" lay-submit lay-filter="saveBtn">提交</button>'/>
                    <button class="layui-btn layui-btn-primary layui-btn-sm" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>